Espressif Systems /ESP32-P4 /SDHOST /CTRL

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CTRL

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (CONTROLLER_RESET)CONTROLLER_RESET 0 (FIFO_RESET)FIFO_RESET 0 (DMA_RESET)DMA_RESET 0 (INT_ENABLE)INT_ENABLE 0 (READ_WAIT)READ_WAIT 0 (SEND_IRQ_RESPONSE)SEND_IRQ_RESPONSE 0 (ABORT_READ_DATA)ABORT_READ_DATA 0 (SEND_CCSD)SEND_CCSD 0 (SEND_AUTO_STOP_CCSD)SEND_AUTO_STOP_CCSD 0 (CEATA_DEVICE_INTERRUPT_STATUS)CEATA_DEVICE_INTERRUPT_STATUS

Description

Control register

Fields

CONTROLLER_RESET

To reset controller, firmware should set this bit. This bit is auto-cleared after two AHB and two sdhost_cclk_in clock cycles.

FIFO_RESET

To reset FIFO, firmware should set bit to 1. This bit is auto-cleared after completion of reset operation. Note: FIFO pointers will be out of reset after 2 cycles of system clocks in addition to synchronization delay (2 cycles of card clock), after the fifo_reset is cleared.

DMA_RESET

To reset DMA interface, firmware should set bit to 1. This bit is auto-cleared after two AHB clocks.

INT_ENABLE

Global interrupt enable/disable bit. 0: Disable; 1: Enable.

READ_WAIT

For sending read-wait to SDIO cards.

SEND_IRQ_RESPONSE

Bit automatically clears once response is sent. To wait for MMC card interrupts, host issues CMD40 and waits for interrupt response from MMC card(s). In the meantime, if host wants SD/MMC to exit waiting for interrupt state, it can set this bit, at which time SD/MMC command state-machine sends CMD40 response on bus and returns to idle state.

ABORT_READ_DATA

After a suspend-command is issued during a read-operation, software polls the card to find when the suspend-event occurred. Once the suspend-event has occurred, software sets the bit which will reset the data state machine that is waiting for the next block of data. This bit is automatically cleared once the data state machine is reset to idle.

SEND_CCSD

When set, SD/MMC sends CCSD to the CE-ATA device. Software sets this bit only if the current command is expecting CCS (that is, RW_BLK), and if interrupts are enabled for the CE-ATA device. Once the CCSD pattern is sent to the device, SD/MMC automatically clears the SDHOST_SEND_CCSD bit. It also sets the Command Done (CD) bit in the SDHOST_RINTSTS_REG register, and generates an interrupt for the host, in case the Command Done interrupt is not masked. NOTE: Once the SDHOST_SEND_CCSD bit is set, it takes two card clock cycles to drive the CCSD on the CMD line. Due to this, within the boundary conditions the CCSD may be sent to the CE-ATA device, even if the device has signalled CCS.

SEND_AUTO_STOP_CCSD

Always Set SDHOST_SEND_AUTO_STOP_CCSD and SDHOST_SEND_CCSD bits together; SDHOST_SEND_AUTO_STOP_CCSD should not be set independently of send_ccsd. When set, SD/MMC automatically sends an internally-generated STOP command (CMD12) to the CE-ATA device. After sending this internally-generated STOP command, the Auto Command Done (ACD) bit in SDHOST_RINTSTS_REG is set and an interrupt is generated for the host, in case the ACD interrupt is not masked. After sending the Command Completion Signal Disable (CCSD), SD/MMC automatically clears the SDHOST_SEND_AUTO_STOP_CCSD bit.

CEATA_DEVICE_INTERRUPT_STATUS

Software should appropriately write to this bit after the power-on reset or any other reset to the CE-ATA device. After reset, the CE-ATA device’s interrupt is usually disabled (nIEN = 1). If the host enables the CE-ATA device’s interrupt, then software should set this bit.

Links

() ()